<?php
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />";
require('connect.sql.php');
require('sql.function.php');
require('admin.function.php');

$power=1;

foreach ($_POST as $key => $value) {
	echo $key."=>".$value."<br/>";
}
$sortid=$_POST['sortid'];
$sortname=$_POST['sortname'];
$sorttype=$_POST['sorttype'];
$sortupid=$_POST['sortupid'];
$sortpoint=$_POST['sortpoint'];
$sortmax=$_POST['sortmax'];
$sortminx=$_POST['sortmin'];


$value="sortname='".$sortname."',sorttype=".$sorttype.",sortupid=".$sortupid.
",sortpoint=".$sortpoint.",sortmax=".$sortmax.",sortmin=".$sortmin."";
$res=updatef("app_sort",$value,'sortid',$sortid);
if($res==1)
{
	echo "更新成功";
}
else
{
	echo "更新失败";
}



?>